<link href="/css/tl_style.css" type="text/css" rel="stylesheet"/>


<?php echo $this->render('login/navbar_login.phtml') ?>
<script src="/js/publish.js"></script>
<script src="/js/calendar.js"></script>

<style type="text/css">
    .t_input {
        width:560px;
        height:20px;
        float:left;
    }
</style>

<style type="text/css">
    .t_input_short {
        width:100px;

    }
</style>

<style type="text/css">
    .select_time {
        width:50px;
        vertical-align:middle;
        outline: none;
    }
</style>

<div class="container-fluid container" >
<div id="mainarea" style="padding-top: 100px">
<h2 class="title"><img src="/img/publish.gif"><?php if($this->edit_type == 'new') echo '新建'; else echo '编辑';?>活动 </h2>
<div class="c_form">
<form id="edit_form" name="edit_form" method="post" action="/activity/publish?edit_type=save&new_modify=<?php echo $this->edit_type?>&id=<?php echo $this->id?>">
<table class="infotable" width="100%" cellspacing="4" cellpadding="4">
<tbody>
<tr>
    <th width="100" style="vertical-align: top;">活动分类 *</th>
    <td><select name="classid" id="classid" onchange="resetItems(this.value)">
            <option value="-1">
                请选择活动分类
            </option>
            <option value="1">电影</option>
            <option value="2">演出</option>
            <option value="3">讲座</option>
            <option value="4">宣讲会</option>
            <option value="5">学生活动</option>
        </select>
    </td>
</tr>

<tr id="tr_title" name="common" style>
    <th>标题 *</th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="title" name="title" title="最多可以输入25个汉字" value="最多可以输入25个汉字" class="v_text" onfocus="if(this.value==this.defaultValue){ this.value=''; $(this).css('color','#454545');}" onblur=" if(this.value==''){this.value=this.defaultValue; $(this).css('color','#BDBDBD');}" style="color: rgb(189, 189, 189);" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr id="tr_place" name="common" style>
    <th>地点 *</th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="place" name="place" title="最多可以输入25个汉字"
               value="最多可以输入25个汉字" class="v_text" onfocus="if(this.value==this.defaultValue){ this.value='';
                                   $(this).css('color','#454545');}" onblur=" if(this.value==''){this.value=this.defaultValue; $(this).css('color','#BDBDBD');}"
               style="color: rgb(189, 189, 189);" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr>
    <th>时间 *</th>
    <td>
                            <span class="v_mr15">
                           	    <input class="t_input" id='time_1' name='time_1' type='text' style="width:100px;" onclick="new Calendar(2011, 2019).show(this);" value=<?php echo date('Y-m-d');?>>
                            </span>
                            <span class="v_mr15">
                                <select name="hour" class="select_time">
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                    <option value="6">6</option>
                                    <option value="7">7</option>
                                    <option value="8">8</option>
                                    <option value="9">9</option>
                                    <option value="10">10</option>
                                    <option value="11">11</option>
                                    <option value="12">12</option>
                                    <option value="13">13</option>
                                    <option value="14">14</option>
                                    <option value="15">15</option>
                                    <option value="16">16</option>
                                    <option value="17">17</option>
                                    <option value="18">18</option>
                                    <option value="19">19</option>
                                    <option value="20">20</option>
                                    <option value="21">21</option>
                                    <option value="22">22</option>
                                    <option value="23">23</option>
                                    <option value="24">24</option>
                                </select>时
                            </span>
                            <span class="v_mr15">
                                <select name="minute" class="select_time">
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                    <option value="6">6</option>
                                    <option value="7">7</option>
                                    <option value="8">8</option>
                                    <option value="9">9</option>
                                    <option value="10">10</option>
                                    <option value="11">11</option>
                                    <option value="12">12</option>
                                    <option value="13">13</option>
                                    <option value="14">14</option>
                                    <option value="15">15</option>
                                    <option value="16">16</option>
                                    <option value="17">17</option>
                                    <option value="18">18</option>
                                    <option value="19">19</option>
                                    <option value="20">20</option>
                                    <option value="21">21</option>
                                    <option value="22">22</option>
                                    <option value="23">23</option>
                                    <option value="24">24</option>
                                    <option value="25">25</option>
                                    <option value="26">26</option>
                                    <option value="27">27</option>
                                    <option value="28">28</option>
                                    <option value="29">29</option>
                                    <option value="30">30</option>
                                    <option value="31">31</option>
                                    <option value="32">32</option>
                                    <option value="33">33</option>
                                    <option value="34">34</option>
                                    <option value="35">35</option>
                                    <option value="36">36</option>
                                    <option value="37">37</option>
                                    <option value="38">38</option>
                                    <option value="39">39</option>
                                    <option value="40">40</option>
                                    <option value="41">41</option>
                                    <option value="42">42</option>
                                    <option value="43">43</option>
                                    <option value="44">44</option>
                                    <option value="45">45</option>
                                    <option value="46">46</option>
                                    <option value="47">47</option>
                                    <option value="48">48</option>
                                    <option value="49">49</option>
                                    <option value="50">50</option>
                                    <option value="51">51</option>
                                    <option value="52">52</option>
                                    <option value="53">53</option>
                                    <option value="54">54</option>
                                    <option value="55">55</option>
                                    <option value="56">56</option>
                                    <option value="57">57</option>
                                    <option value="58">58</option>
                                    <option value="59">59</option>
                                    <option value="60">60</option>
                                </select>分
                            </span>
    </td>
</tr>

<tr id="tr_artist" name="art" style>
    <th>演出方 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="artist" name="artist" value="" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr id="tr_report_reporter" name="report" style>
    <th>主讲人 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="report_reporter" name="report_reporter" value="" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr id="tr_report_langurage" name="report" style>
    <th>主持人 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="report_compere" name="report_compere" value="" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr id="tr_report_reporter_descrip" name="report"  style>
    <th>主讲人介绍 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="report_reporter_descrip" name="report_reporter_descrip" value="" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr id="tr_price" name="common" style>
    <th>票价 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="price" name="price" value="" size="56" type="text" maxlength="80">
    </td>
</tr>

<!--
<tr id="tr_ticket_time" name="art" style>
    <th>售票时间 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="ticket_time" name="ticket_time" value="" size="56" type="text" maxlength="80">
    </td>
</tr>-->
<tr>
    <th>售票时间 </th>
    <td>
                            <span class="v_mr15">
                           	    <input class="t_input" id='time_1' name='time_2' type='text' style="width:100px;" onclick="new Calendar(2011, 2019).show(this);" value=<?php echo date('Y-m-d');?>>
                            </span>
                            <span class="v_mr15">
                                <select name="hour_sale" class="select_time">
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                    <option value="6">6</option>
                                    <option value="7">7</option>
                                    <option value="8">8</option>
                                    <option value="9">9</option>
                                    <option value="10">10</option>
                                    <option value="11">11</option>
                                    <option value="12">12</option>
                                    <option value="13">13</option>
                                    <option value="14">14</option>
                                    <option value="15">15</option>
                                    <option value="16">16</option>
                                    <option value="17">17</option>
                                    <option value="18">18</option>
                                    <option value="19">19</option>
                                    <option value="20">20</option>
                                    <option value="21">21</option>
                                    <option value="22">22</option>
                                    <option value="23">23</option>
                                    <option value="24">24</option>
                                </select>时
                            </span>
                            <span class="v_mr15">
                                <select name="minute_sale" class="select_time">
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                    <option value="6">6</option>
                                    <option value="7">7</option>
                                    <option value="8">8</option>
                                    <option value="9">9</option>
                                    <option value="10">10</option>
                                    <option value="11">11</option>
                                    <option value="12">12</option>
                                    <option value="13">13</option>
                                    <option value="14">14</option>
                                    <option value="15">15</option>
                                    <option value="16">16</option>
                                    <option value="17">17</option>
                                    <option value="18">18</option>
                                    <option value="19">19</option>
                                    <option value="20">20</option>
                                    <option value="21">21</option>
                                    <option value="22">22</option>
                                    <option value="23">23</option>
                                    <option value="24">24</option>
                                    <option value="25">25</option>
                                    <option value="26">26</option>
                                    <option value="27">27</option>
                                    <option value="28">28</option>
                                    <option value="29">29</option>
                                    <option value="30">30</option>
                                    <option value="31">31</option>
                                    <option value="32">32</option>
                                    <option value="33">33</option>
                                    <option value="34">34</option>
                                    <option value="35">35</option>
                                    <option value="36">36</option>
                                    <option value="37">37</option>
                                    <option value="38">38</option>
                                    <option value="39">39</option>
                                    <option value="40">40</option>
                                    <option value="41">41</option>
                                    <option value="42">42</option>
                                    <option value="43">43</option>
                                    <option value="44">44</option>
                                    <option value="45">45</option>
                                    <option value="46">46</option>
                                    <option value="47">47</option>
                                    <option value="48">48</option>
                                    <option value="49">49</option>
                                    <option value="50">50</option>
                                    <option value="51">51</option>
                                    <option value="52">52</option>
                                    <option value="53">53</option>
                                    <option value="54">54</option>
                                    <option value="55">55</option>
                                    <option value="56">56</option>
                                    <option value="57">57</option>
                                    <option value="58">58</option>
                                    <option value="59">59</option>
                                    <option value="60">60</option>
                                </select>分
                            </span>
    </td>
</tr>

<tr id="tr_ticket_status" name="art" style>
    <th>售票状态 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="ticket_status" name="ticket_status" value="" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr id="tr_ticket_place" name="art" style>
    <th>售票地点 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="ticket_place" name="ticket_place" value="" size="56" type="text" maxlength="80">
    </td>
</tr>


<tr id="tr_sponsor" name="common" style>
    <th>主办方 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="sponsor" name="sponsor" value="" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr id="tr_duration" name="common" style>
    <th>时长 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="duration" name="duration" value="" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr id="tr_link" name="common" style>
    <th>网页链接 </th>
    <td>
        <input onclick="checkClassSelect()" class="t_input" id="link" name="link" value="" size="56" type="text" maxlength="80">
    </td>
</tr>



<tr id="tr_label" name="common" style>
    <th>标签 </th>
    <td>
        <input onclick="checkClassSelect()"  class="t_input" id="label" name="label" value="" size="56" type="text" maxlength="80">
    </td>
</tr>

<tr id="tr_description" name="common" style>
    <th>活动详情 </th>
    <td>
        <textarea onclick="checkClassSelect()" class="userData" name="detail" id="uchome-ttHtmlEditor" style="height:100%;width:80%;display:none;border:0px"></textarea>
        <iframe src="/html/editor.html" onclick="checkClassSelect()" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:580px;border: 1px solid #C5C5C5;" height="400"></iframe>

    </td>
</tr>

<tr>
    <th style="vertical-align: top;">活动海报</th>
    <td>
        <input type="file" name="poster"> 图片将上作为活动的宣传海报。<br>
    </td>
</tr>


</tbody>
</table>

<table class="infotable" width="100%" cellspacing="4" cellpadding="4">
    <tbody>

    <tr>
        <th width="100">&nbsp;</th>
        <td>
            <input type="hidden" name="formhash" value="aa9ddf38">
            <input type="hidden" name="new_modify" value=<?php if($this->edit_type == 'new') echo 'new'; else echo 'modify';?>>
            <input type="hidden" name="article_id" value=<?php echo $this->id?>>
            <input class="submit" value="提交" type="submit" onclick="check_eventpost()">
        </td>
    </tr>
    </tbody>
</table>
</form>-->
</div>
</div>
</div>
<?php echo $this->render('index/footer.phtml') ?>